package com.cq.androidtools.room1

import androidx.room.Embedded
import androidx.room.Relation

/**
 * 作者: CQ
 * 日期: 2021-05-11
 * 说明:sId,name1,age,sex
 */
class Combination(
    @Embedded val student: Student,
//    @Relation(
//        parentColumn = "sId",
//        entityColumn = "studentId",
//        entity = Book::class
//    )
//    val books: MutableList<Book>,
    @Relation(
        parentColumn = "sId",
        entityColumn = "sId",
        entity = MakeBean::class
    )
    val makeBean: List<MakeBean>
) {
    override fun toString(): String {
        return "Combination(student=$student, makeBean=$makeBean)"
    }
}